<!-- website index -->
<?php $this->render('common/header'); ?>
	<div id="wsbox">
		<div id="wsddown">
			<form action="javascript:void(0);" method="post">
				<table>
					<tr>
						<td style="color: #000;">Choose website for work with:</td>
						<td>
							<select class="ddown" name="website" id="website-id">
								<option value="0">Choose website</option>
								<?php foreach ($websites as $website): ?>
									<option value="<?php echo $website->id;?>"><?php echo $website->name; ?></option>
								<?php endforeach; ?>
							</select>
						</td>
					</tr>
				</table>
			</form>
		</div>
		<p>OR <b>Create new</b></p>
		<div id="ws-create">
            <?php $this->render('common/errors'); ?>
			<form action="index.php?cont=website&amp;act=addnew" method="post">
				<table>
					<tr>
						<td>Website name:</td>
						<td><input class="text" type="text" name="wsname" /></td>
					</tr>
					<tr>
						<td>Website url:</td>
						<td><input class="text" type="text" name="wsurl" /></td>
					</tr>
					<tr>
						<td colspan="2" align="right"><input class="button" type="submit" name="createws" value="Add new"/></td>
					</tr>
				</table>
			</form>
		</div>
	</div>
<?php $this->render('common/footer')?>